﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Baosight.ZNH.ZMCommon;
using Baosight.Platform.Core.UI.Controls;

namespace Baosight.ZNH.ZP.UI
{
    public partial class ZP13 : EFViewCmes
    {
        public ZP13()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 页签切换
        /// 刷新第二个页签数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void EFTab_SelectionChanged(object sender, RoutedEventArgs e)
        {
            EFTab _tab = sender as EFTab;
            if (null != _tab)
            {
                EFTabItem _item = _tab.SelectedItem as EFTabItem;

                if (null != _item && this.Role.IsSelected)
                {
                    this.Role.LoadView<EFTabItem>("ZP14");
                }
                if (null != _item && this.User.IsSelected)
                {
                    this.User.LoadView<EFTabItem>("ZP12");
                }
            }
        }
    }
}
